Fix clip of more windowed widgets
authorTimm Bäder <mail@baedert.org>
Fri, 28 Oct 2016 16:10:22 +0000 (18:10 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 28 Oct 2016 17:33:47 +0000 (19:33 +0200)
gtk/gtkflowbox.c
gtk/gtklistbox.c

index 1866a6937a02a91c0d0407870ac8bb7fee1f5b60..fd83a4861c8bdb609be658c3bd047543f8781087 100644 (file)
@@ -511,6 +511,8 @@ gtk_flow_box_child_size_allocate (GtkWidget     *widget,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);
 
+  clip.x += allocation->x;
+  clip.y += allocation->y;
   gtk_widget_set_clip (widget, &clip);
 }
 
index 3bc32572bd016931729da14db792db9eabeffccd..e4ee1baccb85de58332ef08ec49cd67a63b28fa0 100644 (file)
@@ -2680,7 +2680,9 @@ gtk_list_box_size_allocate (GtkWidget     *widget,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);
 
-  _gtk_widget_set_simple_clip (widget, &clip);
+  clip.x += allocation->x;
+  clip.y += allocation->y;
+  gtk_widget_set_clip (widget, &clip);
 }